/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2024-03-10
 * Time: 16:22
 */
public class Student {
    public String name;
    public String gender;
    public int age;

    public void eat(){
        System.out.println(this.name + "正在吃饭");
    }

    public static void main(String[] args) {
        Student student = new Student();
        student.name = "张三";
        student.age = 20;
        student.gender = "男";
        System.out.println(student.name);
        System.out.println(student.age);
        System.out.println(student.gender);
        student.eat();
        System.out.println("==============================");

        Student student2 = new Student();
        student2.name = "小薇";
        student2.age = 11;
        student2.gender = "女";
        System.out.println(student2.name);
        System.out.println(student2.age);
        System.out.println(student2.gender);
        student2.eat();

        System.out.println("==============================");
        Student student3 = new Student();
        System.out.println(student3.name);
        System.out.println(student3.age);
        System.out.println(student3.gender);
        student3.eat();
    }
}
